﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.Entitys.Entity
{
    /// <summary>
    /// 纠错和预防措施处理单实体.
    /// </summary>
    [SugarTable("qms_busi_customer_measure", "纠错和预防措施处理单")]
    [Tenant(ClaimConst.TENANTID)]
    public class QmsBusiCustomerMeasureEntity : CLDEntityBase
    {
        /// <summary>
        /// Guid.
        /// </summary>
        //[SugarColumn(ColumnName = "F_Id", ColumnDescription = "Guid", IsPrimaryKey = true)]
        //public string Id { get; set; }

        /// <summary>
        /// 主Guid.
        /// </summary>
        [SugarColumn(ColumnName = "F_CustomerId", ColumnDescription = "主Guid")]
        public string CustomerId { get; set; }

        /// <summary>
        /// 不合格描述.
        /// </summary>
        [SugarColumn(ColumnName = "F_NonDescription", ColumnDescription = "不合格描述")]
        public string NonDescription { get; set; }

        /// <summary>
        /// 根源分析.
        /// </summary>
        [SugarColumn(ColumnName = "F_CauseAnalysis", ColumnDescription = "根源分析")]
        public string CauseAnalysis { get; set; }

        /// <summary>
        /// 完成日期.
        /// </summary>
        [SugarColumn(ColumnName = "F_CompletionDate", ColumnDescription = "完成日期")]
        public DateTime? CompletionDate { get; set; }

        /// <summary>
        /// 不良品.
        /// </summary>
        [SugarColumn(ColumnName = "F_NonGood", ColumnDescription = "不良品")]
        public string NonGood { get; set; }

        /// <summary>
        /// 是否勾选成品数量.
        /// </summary>
        [SugarColumn(ColumnName = "F_IsFinish", ColumnDescription = "是否勾选成品数量")]
        public int? IsFinish { get; set; }

        /// <summary>
        /// 成品数量.
        /// </summary>
        [SugarColumn(ColumnName = "F_FinishQty", ColumnDescription = "成品数量")]
        public string FinishQty { get; set; }

        /// <summary>
        /// 成品责任人.
        /// </summary>
        [SugarColumn(ColumnName = "F_FinishResponsibleUserId", ColumnDescription = "成品责任人")]
        public string FinishResponsibleUserId { get; set; }

        /// <summary>
        /// 成品完成日期.
        /// </summary>
        [SugarColumn(ColumnName = "F_FinishCompletionDate", ColumnDescription = "成品完成日期")]
        public DateTime? FinishCompletionDate { get; set; }

        /// <summary>
        /// 是否勾选半成品数量.
        /// </summary>
        [SugarColumn(ColumnName = "F_IsSemi", ColumnDescription = "是否勾选半成品数量")]
        public int? IsSemi { get; set; }

        /// <summary>
        /// 半成品数量.
        /// </summary>
        [SugarColumn(ColumnName = "F_SemiQty", ColumnDescription = "半成品数量")]
        public string SemiQty { get; set; }

        /// <summary>
        /// 半成品责任人.
        /// </summary>
        [SugarColumn(ColumnName = "F_SemiResponsibleUserId", ColumnDescription = "半成品责任人")]
        public string SemiResponsibleUserId { get; set; }

        /// <summary>
        /// 半成品完成日期.
        /// </summary>
        [SugarColumn(ColumnName = "F_SemiCompletionDate", ColumnDescription = "半成品完成日期")]
        public DateTime? SemiCompletionDate { get; set; }

        /// <summary>
        /// 是否勾选库存数量.
        /// </summary>
        [SugarColumn(ColumnName = "F_IsInventory", ColumnDescription = "是否勾选库存数量")]
        public int? IsInventory { get; set; }

        /// <summary>
        /// 库存数量.
        /// </summary>
        [SugarColumn(ColumnName = "F_InventoryQty", ColumnDescription = "库存数量")]
        public string InventoryQty { get; set; }

        /// <summary>
        /// 库存责任人.
        /// </summary>
        [SugarColumn(ColumnName = "F_InventoryResponsibleUserId", ColumnDescription = "库存责任人")]
        public string InventoryResponsibleUserId { get; set; }

        /// <summary>
        /// 库存完成日期.
        /// </summary>
        [SugarColumn(ColumnName = "F_InventoryCompletionDate", ColumnDescription = "库存完成日期")]
        public DateTime? InventoryCompletionDate { get; set; }

        /// <summary>
        /// 是否勾选其他.
        /// </summary>
        [SugarColumn(ColumnName = "F_IsOther", ColumnDescription = "是否勾选其他")]
        public int? IsOther { get; set; }

        /// <summary>
        /// 其他数量.
        /// </summary>
        [SugarColumn(ColumnName = "F_OtherQyt", ColumnDescription = "其他数量")]
        public string OtherQyt { get; set; }

        /// <summary>
        /// 其他责任人.
        /// </summary>
        [SugarColumn(ColumnName = "F_OtherResponsibleUserId", ColumnDescription = "其他责任人")]
        public string OtherResponsibleUserId { get; set; }

        /// <summary>
        /// 其他完成日期.
        /// </summary>
        [SugarColumn(ColumnName = "F_OtherCompletionDate", ColumnDescription = "其他完成日期")]
        public DateTime? OtherCompletionDate { get; set; }

        /// <summary>
        /// 纠正措施.
        /// </summary>
        [SugarColumn(ColumnName = "F_MeasureRemark", ColumnDescription = "纠正措施")]
        public string MeasureRemark { get; set; }

        /// <summary>
        /// 纠正措施责任人.
        /// </summary>
        [SugarColumn(ColumnName = "F_MeasureResponsibleUserId", ColumnDescription = "纠正措施责任人")]
        public string MeasureResponsibleUserId { get; set; }

        /// <summary>
        /// 纠正措施完成日期.
        /// </summary>
        [SugarColumn(ColumnName = "F_MeasureCompletionDate", ColumnDescription = "纠正措施完成日期")]
        public DateTime? MeasureCompletionDate { get; set; }

        /// <summary>
        /// 效果评估.
        /// </summary>
        [SugarColumn(ColumnName = "F_EvaluationRemark", ColumnDescription = "效果评估")]
        public string EvaluationRemark { get; set; }

        /// <summary>
        /// 效果责任人.
        /// </summary>
        [SugarColumn(ColumnName = "F_EvaluationResponsibleUserId", ColumnDescription = "效果责任人")]
        public string EvaluationResponsibleUserId { get; set; }

        /// <summary>
        /// 效果完成日期.
        /// </summary>
        [SugarColumn(ColumnName = "F_EvaluationCompletionDate", ColumnDescription = "效果完成日期")]
        public DateTime? EvaluationCompletionDate { get; set; }

        /// <summary>
        /// 状态0保存  1提交 2 已审批 3已拒绝.
        /// </summary>
        [SugarColumn(ColumnName = "F_Status", ColumnDescription = "状态0保存  1提交 2 已审批 3已拒绝")]
        public int? Status { get; set; }

        /// <summary>
        /// 有效标志0无效 1有效.
        /// </summary>
        [SugarColumn(ColumnName = "F_EnabledMark", ColumnDescription = "有效标志0无效 1有效")]
        public int? EnabledMark { get; set; }

        /// <summary>
        /// 是否推送纠正和预防措施处理0未推送1已推送
        /// </summary>
        [SugarColumn(ColumnName = "F_IsMeasure", ColumnDescription = "是否推送纠正和预防措施处理0未推送1已推送")]
        public int? IsMeasure { get; set; }

    }
}
